home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 970 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
  2. Message-ID: <31648016.2503F398@cantrip.org>
  3. X-Original-Date: Thu, 04 Apr 1996 18:06:14 -0800
  4. Path: in1.uu.net!bounce-back
  5. Date: 05 Apr 96 03:36:58 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: strings as stl container
  9. Organization: The Cantrip Cooperative
  10. References: <199604020907.LAA06972@bredex.bredex.de> <4jvdnd$c9c@hermes.synopsys.com>
  11. X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.13 i386)
  12. Cc: rwilhelm@str.com
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMWSVb+EDnX0m9pzZAQE19gF/RkthJIYNiHQuEW52rFoGLenvQDWwHl2H
  15.     fwDRu9qMDq3M4k2RH8S7K/wVf3Lej26M
  16.     =Lyp/
  17.  
  18. Joe Buck wrote:
  19.  
  20. > Nico Josuttis <nico@bredex.de> writes:
  21. > >Due to the fact that strings have iterator support,
  22. > >they could be used as stl container.
  23. >
  24. > >But two things are missing:
  25. > > - push_back()
  26. > > - clear()
  27. > No, these are not needed.
  28.  
  29. The January '96 WP lists clear() as a required member of 
  30. a Sequence, and push_back() as an optional member to be 
  31. "provided only for the containers for which they take
  32. constant time".  In that version of the WP, some of the
  33. optional members are provided, others are not.  
  34.  
  35. These omissions probably should be listed as an open issue for 
  36. the Strings chapter.
  37.  
  38. Nathan Myers
  39. ncm@cantrip.org
  40. ---
  41. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  42. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  43. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  44. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  45. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  46.